<?php
	$array_list = array();
        foreach ($list as $row){
            $array_list[] = array(
                    "id" => $row->getId(),
                    "email" =>  $row->getEmail(),
                    "name" =>  $row->getNombre(),
                    "lastName" =>  $row->getApellido(),
            );
        }
    $json = json_encode(
    array(              "success" =>  $success,
			"practil"  => array(
				'accounts' => $array_list
			)
		)
	);
    echo $json;
?>